package com.jiaai.cloud.live.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.jiaai.cloud.base.page.CustomPage;
import com.jiaai.cloud.live.entity.TLiveBroadcast;
import com.baomidou.mybatisplus.service.IService;
import com.jiaai.cloud.live.vo.BroadcastListVO;
import java.util.List;
import java.util.Map;


/**
 * <p>
 *  直播间 服务类
 * </p>
 *
 * @author 佳爱网络科技
 * @version V1.0
 * @title ITLiveBroadcastService.java
 * @since 2017/8/1
 */
public interface ITLiveBroadcastService extends IService<TLiveBroadcast> {
    /***
     * 查找正在直播的主播间
     * @param page
     * @return
     */
    CustomPage<BroadcastListVO> findByBroadcastVo(Page page);

    public List<TLiveBroadcast> findByAnchorId(String anchorId);
  //  TLiveBroadcast currentBroadcastByUserId(String userId);

    List<Map<String, Object>> selectDataCount();
}
